<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Vue</title>
</head>
<body>
  <div id="app">
    <h1>插值表达式</h1>
    <h3>{{ msg }}</h3>
    <h3>{{ count }}</h3>
    <h1>v-html</h1>
    <div v-html="html"></div>
    <h1>v-on</h1>
    <div v-on:click="clickMe">点我</div>
    <h1>v-text</h1>
    <div v-text="msg"></div>
    <h1>v-model</h1>
    <input type="text" v-model="msg">
    <input type="text" v-model="count">
  </div>
  <script src="./dep.js"></script>
  <script src="./watcher.js"></script>
  <script src="./observer.js"></script>
  <script src="./vue.js"></script>
  <script src="./compiler.js"></script>
  <!-- <script crossorigin="anonymous" integrity="sha384-9u9lzb/hr8e14GLHe5TEOrTiH3Qtw5DX2Zw9X/g7cqj81W2McEMx5CKOszxdb8jg" src="https://lib.baomitu.com/vue/2.6.10/vue.js"></script> -->
  <script>
    let vm = new Vue({
      el:'#app',
      data: {
        msg: 'Hello Vue',
        count: 20,
        html: '<p>这是一个p标签<span>嵌套span标签</span></p>',
        clickMe() {
          alert('click me!')
        }
      },
      methods: {
        clickMe() {
          alert('click me!')
        }
      }
    })
    // console.log(vm)
  </script>
</body>
</html>